package com.bawei.yangzongcai___chenmei.Adpter;

import android.widget.ImageView;

import com.bawei.yangzongcai___chenmei.JavaClass.JavaJinxi;
import com.bawei.yangzongcai___chenmei.R;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * create by ertu
 * create on 2021/7/14
 * description
 */
public class QAQadpterActivity2 extends BaseQuickAdapter<JavaJinxi.ResBean.VerticalBean, BaseViewHolder> {

    public QAQadpterActivity2( @Nullable List<JavaJinxi.ResBean.VerticalBean> data) {
        super(R.layout.kauisushiperiqi, data);
        addChildLongClickViewIds(R.id.kauiqu_img);
        addChildClickViewIds(R.id.kauiqu_img);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, JavaJinxi.ResBean.VerticalBean verticalBean) {
        baseViewHolder.setText(R.id.kauiqu_Text,"美女ID："+verticalBean.getSource_type());
        Glide.with(getContext()).load(verticalBean.getImg()).into((ImageView) baseViewHolder.getView(R.id.kauiqu_img));
    }


}
